<?php

class Resource_Backend_Action_Hidden_Edit extends Resource_Backend_Action_Common_Edit 
{
    
    /**
    * Exclude name as hidden resource does not has it.
    * 
    * @var array
    */
    protected $_exclude = array('name');
    
    /**
     * @desc Overlay load data to check current menu belonging.
     *
     * @return  array
     */
    protected function _load() 
    {
        static $data = array();
        
        if (empty($data)) {
            $query = '
                SELECT 
                       *
                  FROM 
                       `' . $this->_table . '`
                 WHERE 
                       `id` = ' . (int)$this->id;
            $data = database::fetchRow($query);
        }
        
        return $data;
    }
   
}